//
//  Card.h
//  SCRAP_ObjC
//
//  Created by Capstone Design Fall 2010 on 10/20/10.
//  Copyright 2010 Thunderwear. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#include <stdlib.h>

//static CCSpriteSheet * cardSheet = nil;

@interface Card : CCSprite {
	int rank;
	char suit;
	BOOL isReserve;
	UITouch *touch;
	CGPoint touchOffset;
	CGPoint holdPos;
	
	NSMutableArray * stackRef;
	
	CCSprite * _shadow;
	CCSprite * _outline;
}

-(Card*) initWithRank:(int)r withSuit:(char)s;
-(BOOL) pointInside:(CGPoint)point;
-(BOOL) isRed;
-(BOOL) isBlack;
-(NSString*) description;
+(Card*) getRandomCard;
+(Card*) initWithRank:(int)r withSuit:(char)s forIPhone:(id)x;
+(Card*) initWithRank:(int)r withSuit:(char)s forIPad:(id)x;

-(void) removeShadow;
-(void) setShadow:(int)_opacity;

@property (retain) UITouch * touch;
@property CGPoint touchOffset;
@property (retain) NSMutableArray * stackRef;
@property int rank;
@property char suit;
@property BOOL isReserve;
@property CGPoint holdPos;
@property (nonatomic, retain) CCSprite * _shadow;

@end
